package com.partvoyage.client.service.projet;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.partvoyage.shared.DateDepartArriveBean;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface ProjetServiceAsync {
	void create(String nom, String commentaire, String compteProprietaire,
			String type, AsyncCallback<ProjetBean> callBack);

	void deleteProjetId(Long projetId, AsyncCallback callback);

	void findByProjetCourantByCompteProprietaire(String compteProprietaire,
			AsyncCallback<ProjetBean> callBack);

	void getCoutTotal(Long projetId, AsyncCallback<Double> callback);

	void update(ProjetBean projetBean, AsyncCallback<ProjetBean> asyncCallback);

	void getDateDepartEtArrive(Long projetId,
			AsyncCallback<DateDepartArriveBean> asyncCallback);

	void findAllProjetByUser(String compteProprietaire,
			AsyncCallback<List<ProjetBean>> callback);

	void findProjetById(Long projetId, AsyncCallback<ProjetBean> callback);

}
